package com.credithc.customers.base.init;

import com.credithc.customers.base.service.ICacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author zhukai
 * @date 2019/2/1 9:00
 */
@Component
public class BaseCacheRunnerImpl implements ApplicationRunner {

    @Autowired
    private ICacheService cacheService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        cacheService.cacheSystemInfo();
    }
}
